#
# Be sure to run `pod lib lint TYCommonCode.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

# 引入外部脚本文件如果有需要的话，没有需要可以先引入
#require_relative "autoCreateResouce"

Pod::Spec.new do |s|
  s.name             = 'TYCommonCode'
  s.version          = '0.0.0.3'
  s.summary          = 'iOS全站和体育的共用代码私有库'

  s.description      = <<-DESC
  iOS 全站和体育的共用代码私有库，包括且不限于UI相同代码、逻辑相同代码。尽量不要依赖全站或者体育的业务代码，不得已需要依赖的话也请做到尽量少。
                       DESC

  s.homepage         = 'http://j7.hnxmny.com:8088/a/iOS-Libraries/BusinessComponents/TYCommonCode'
  s.source           = { :git => 'http://j7.hnxmny.com:8088/a/iOS-Libraries/BusinessComponents/TYCommonCode', :tag => s.version.to_s }
  s.author           = { 'corin' => 'jscorin@itcom888.com' }
  s.ios.deployment_target = '9.0'

# 如果能够解决外部脚本文件中获取资源路径的问题的话就可以使用外部脚本编译资源文件
#  s.script_phase = {
#      :execution_position => :before_compile,
#      :name => 'TYCommonCode Create Resouce',
#      :script => $buildscript
#    }

  s.prefix_header_file = 'TYCommonCode/Others/TYCommonCodePrefix.pch'
  s.public_header_files = 'TYCommonCode/TYCommonCode.h'
  s.private_header_files = 'TYCommonCode/Services/LoginAndRegister/TYLoginCommonManager_PrivateHeader.h'
  s.source_files = 'TYCommonCode/TYCommonCode.h'

  s.subspec 'Views' do |sub|
    sub.source_files = 'TYCommonCode/Views/**/*{h,m}'
  end
  s.subspec 'Categories' do |sub|
    sub.source_files = 'TYCommonCode/Categories/**/*{h,m}'
  end
  s.subspec 'Services' do |sub|
    sub.source_files = 'TYCommonCode/Services/**/*{h,m}'
  end
  s.subspec 'Constant' do |sub|
    sub.source_files = 'TYCommonCode/Constants/**/*{h,m}'
  end
  s.subspec 'Macros' do |sub|
    sub.source_files = 'TYCommonCode/Macros/**/*{h,m}'
  end
  s.subspec 'Assets' do |sub|
    sub.source_files = 'TYCommonCode/Assets/**/*{h,m}'
  end
  s.subspec 'Vendors' do |sub|
    sub.source_files = 'TYCommonCode/Vendors/**/*{h,m}'
  end
  s.subspec 'Modules' do |sub|
    sub.source_files = 'TYCommonCode/Modules/**/*{h,m}'
  end
  
   s.resource_bundles = {
     'TYCommonCode' => [
     'TYCommonCode/Resources/*.xcassets',
     'TYCommonCode/Resources/*.lproj',
     ]
   }
   s.frameworks = 'UIKit', 'Foundation'
   
   s.dependency 'YYImage'
   s.dependency 'BlocksKit'
   s.dependency 'Masonry', '1.1.0'
   s.dependency 'TYAccountServicesSDK'
   s.dependency 'TYGenericServicesSDK'
   s.dependency 'TYInstallSDK'
   s.dependency 'TYLogSDK'
   s.dependency 'TYWalletServicesSDK'
   
  # s.resources = "TYCommonCode/Resources/*.{xib,sh,bundle}"
  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
